package computacaografica;


public class Scala2D extends Matriz{

	private double sx;
	private double sy;

	public Scala2D(double sx, double sy){
		super(3,3);
		this.sx = sx;
		this.sy = sy;
		double[] linha0 = {sx, 0.0, 0.0};
		double[] linha1 = {0.0, sy, 0.0};
		double[] linha2 = {0.0, 0.0, 1.0};
		setLinha(0, linha0);
		setLinha(1, linha1);
		setLinha(2, linha2);
	}

	public String toString(){
		return "Escala (" + sx + ", " + sy + ")";
	}

}
